<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>管理员帐号</title>
		<link rel="stylesheet" type="text/css" href="../css/style1.css" />
		<link rel="stylesheet" type="text/css" href="../css/base.css" />
		<link rel="stylesheet" type="text/css" href="../css/indexbody.css" />
		<script type="text/javascript" src="../js/frame.js"></script>
<script type="text/javascript">
window.onload=function(){
	document.getElementById("hide").style.display="none";
	document.getElementById("sc").style.display="none";
	document.getElementById("vip").style.display='none';
	document.getElementById("mb").style.display='none';
	document.getElementById("sys").style.display='block';
}
function doDelete(id){
		  	if (confirm("你确实要删除(ID:"+id+")这个会员?")) {
				location.href="<%=path %>/manager/system/deleteAdminUserAction.action?id="+id;
			}
	  	}
</script>
</head>
<body background='../images/allbg.gif' leftmargin='8' topmargin='8'>
 <div id="container">
       <jsp:include page="../header.jsp"></jsp:include>
        <div style="float:left; width:195px; height: 550px">
        	<jsp:include page="../leftnav.jsp"></jsp:include>
        </div>
       <div style="float:left; overflow-y:scroll; overflow-x:hidden; width: 785px; height: 550px;">
     
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6">
  <tr>
    <td height="27" colspan="5" background="../images/tbg.gif" bgcolor="#E7E7E7">
    	<table width="96%" border="0" cellspacing="1" cellpadding="1">
        <tr>
          <td width="24%" style="padding-left:10px;"><b>管理员帐号</b> </td>
          <td width="76%" align="right"><b>
          	<a href="sys_admin_user_add.jsp"><u>增加管理员</u></a>
          	</b>
          </td>
        </tr>
      </table>
     </td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td height="24" colspan="5">　§为了防止错误操作，系统不允许在管理界面删除超级管理员，如果确实要删除，请自行在数据表ggcms_admin中删除。</td>
  </tr>
  <tr bgcolor="#FBFCE2">
    <td width="18%" align="center" colspan="2">登录ID</td>
    <td width="22%" align="center">级别</td>
    <td width="22%" align="center">email</td>
    <td width="23%" align="center">管理项</td>
  </tr>
  <s:iterator value="adminList">
    <tr bgcolor="#FFFFFF" align="center">
    <td colspan="2"><s:property value="userName"/></td>
    <s:if test='userName=="admin"'>
    <td>超级管理员</td>
    </s:if>
    <s:else> 
    	<td>管理员</td>
    </s:else>
    <td><s:property value="email"/></td>
    <td >
	  <a href='<%=path %>/manager/system/findAdminUserByIdAction.action?id=<s:property value="id"/>'><u>更改</u></a> |
	  <s:if test='userName=="admin"'>
      	<a href='javascript:;'><u>删除</u></a> |
      </s:if>
      <s:else>
      	<a href="javascript:doDelete('<s:property value='id'/>')"><u>删除</u></a> |
      </s:else>
     <a href='content.jsp'><u>文档</u></a>　
    </td>
  </tr>
  </s:iterator>
    <tr bgcolor="#F9FCEF">
    <td height="24" colspan="5" align="center" valign="top">
    	<span>共 1 页/1条记录</span>
    </td>
  </tr>
</table>
       	
       </div>
    </div>
</body>
</html>